#pragma once
#include <stdio.h>

class CPlayerUtility
{
public:
	CPlayerUtility();
	~CPlayerUtility();
};

void KillAppByExeName(const wchar_t* name, bool killall = false);

bool CheckMainExeExist(const wchar_t* name);

void ReadCfg();

void SendCopyDataMsgByHWND(HANDLE wnd, const wchar_t* data);

int GetCfgVolumn();

bool GetCfgMute();

float GetCfgPlaySpeed();

int GetCfgPlayRepeatType();

float StretchFitRect(RECT& src, RECT dest);

int GetCfgPlayMode();

bool eq(const wchar_t* left, const wchar_t* right);